<div class="builder-form-container" data-control-container>
    <!-- Some containers allow up to 3 lists - tabless fieflds, primary tabs, secondary tabs -->
    <?= $this->makePartial('controllist', [
        'controls' => isset($fieldsConfiguration['fields']) ? $fieldsConfiguration['fields'] : [], 
        'listName' => ''
    ]) ?>

    <?= $this->makePartial('tabs', [
        'type' => 'primary',
        'controls' => $this->getTabsFields('tabs', $fieldsConfiguration),
        'listName' => 'tabs',
        'tabsTitle' => trans('winter.builder::lang.form.tabs_primary'),
        'configuration' => [],
        'tabNameTemplate' =>  trans('winter.builder::lang.form.tab_name_template'),
    ]) ?>

    <?= $this->makePartial('tabs', [
        'type' => 'secondary',
        'controls' => $this->getTabsFields('secondaryTabs', $fieldsConfiguration),
        'listName' => 'secondaryTabs',
        'tabsTitle' => trans('winter.builder::lang.form.tabs_secondary'),
        'configuration' => [],
        'tabNameTemplate' =>  trans('winter.builder::lang.form.tab_name_template'),
    ]) ?>

</div>